package com.logistica.metropolitana.web.controllers;

import javax.servlet.http.HttpServletRequest;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
/**
 * 
 * @author rioslore
 *
 */
@Controller
@RequestMapping(value="/error_404")
public class Error404Controller {

	private final Logger logger = LoggerFactory.getLogger(Error404Controller.class);	
	
	@RequestMapping(method = RequestMethod.GET)	
	public String showErrorCodeGet(HttpServletRequest request){
		logger.info("Error 404 Message");	
		return "error_404";
	}
	
	@RequestMapping(method = RequestMethod.POST)	
	public String showErrorCodePost(HttpServletRequest request, ModelMap modelMap){		
		logger.info("Error 404 Message");			
		return "error_404";
	}
}
